package com.situ.mall.manager.service;

import com.github.pagehelper.PageInfo;
import com.situ.mall.manager.entity.Category;

import java.util.List;

//规定分类发相关操作
public interface CategoryService {
    //添加
    int add(Category category) throws Exception;
    //删除
    int remove(int id) throws Exception;
    //修改
    int edit(Category category) throws Exception;
    //查询
    Category getById(Integer id);

    //根据条件搜索
    List<Category> search(Category category);

    /**
     *
     * @param page
     * @param limit
     * @param category
     * @return
     */
    PageInfo searchByPage(Integer page, Integer limit, Category category);
}
